package com.ds.home.database.vo;

import com.ds.iot.enums.DeviceStatus;


/**
 * Znode entity. @author MyEclipse Persistence Tools
 */

public class ZNodeVO implements java.io.Serializable {

	// Fields

	private String znodeid;
	
	private String deviceid;
	
	private String endpointid;
	
	private String parentid;
	private String panid;
	private String macaddress;
	private String ztype;
	private String profilepath;
	private String masterkey;
	private String name;
	
	private Integer channel;
	private Integer sensortype;

	private String zmoduleid;
	private String createuiserid;
	private Integer status=DeviceStatus.ONLINE.getCode();
	
	
	
	

	// Constructors

	/** default constructor */
	public ZNodeVO() {
	}

	/** minimal constructor */
	public ZNodeVO(String znodeid) {
		this.znodeid = znodeid;
		
	}

	/** full constructor */
	public ZNodeVO(String znodeid, String deviceid,String endpointid, String parentid,
			String panid, String macaddress, String ztype,
			String profilepath, String masterkey, String name,
			Integer channel, Integer sensortype,  String zmoduleid, String createuiserid,Integer status) {
		this.znodeid = znodeid;		
		this.deviceid = deviceid;
		this.endpointid=endpointid;
		this.parentid = parentid;
		this.panid = panid;
		this.macaddress = macaddress;
		this.ztype = ztype;
		this.profilepath = profilepath;
		this.masterkey = masterkey;
		this.name = name;
		this.channel = channel;
		this.sensortype = sensortype;
		this.zmoduleid = zmoduleid;
		this.createuiserid = createuiserid;
		this.status=status;
	
	
	}

	// Property accessors

	public String getZnodeid() {
		return this.znodeid;
	}

	public void setZnodeid(String znodeid) {
		this.znodeid = znodeid;
	}

	

	public String getDeviceid() {
		return this.deviceid;
	}

	public void setDeviceid(String deviceid) {
		this.deviceid = deviceid;
	}

	public String getParentid() {
		return this.parentid;
	}

	public void setParentid(String parentid) {
		this.parentid = parentid;
	}

	public String getPanid() {
		return this.panid;
	}

	public void setPanid(String panid) {
		this.panid = panid;
	}

	public String getMacaddress() {
		return this.macaddress;
	}

	public void setMacaddress(String macaddress) {
		this.macaddress = macaddress;
	}

	public String getZtype() {
		return this.ztype;
	}

	public void setZtype(String ztype) {
		this.ztype = ztype;
	}

	public String getProfilepath() {
		return this.profilepath;
	}

	public void setProfilepath(String profilepath) {
		this.profilepath = profilepath;
	}

	public String getMasterkey() {
		return this.masterkey;
	}

	public void setMasterkey(String masterkey) {
		this.masterkey = masterkey;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getChannel() {
		return this.channel;
	}

	public void setChannel(Integer channel) {
		this.channel = channel;
	}

	public Integer getSensortype() {
		return this.sensortype;
	}

	public void setSensortype(Integer sensortype) {
		this.sensortype = sensortype;
	}


	public String getZmoduleid() {
		return this.zmoduleid;
	}

	public void setZmoduleid(String zmoduleid) {
		this.zmoduleid = zmoduleid;
	}

	public String getCreateuiserid() {
		return this.createuiserid;
	}

	public void setCreateuiserid(String createuiserid) {
		this.createuiserid = createuiserid;
	}
	
	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}


	@Override
	public boolean equals(Object obj) {
		if (obj!=null && obj instanceof ZNodeVO){
			return (((ZNodeVO)obj).getZnodeid().equals(this.znodeid));
		}
		return super.equals(obj);
	}

	public String getEndpointid() {
		return endpointid;
	}

	public void setEndpointid(String endpointid) {
		this.endpointid = endpointid;
	}

	
}